import request from '@/utils/request'
// ========================= 管理 ======================================
// Get Record
export const QueryWxGroup = (page, pageSize, state) => {
  return request({
    url: '/v1/prse/wxGroup/manage/',
    method: 'get',
    params: {
      page: page,
      page_size: pageSize,
      state,
    },
  })
}

// Dispatch Record
// export const DispatchWxGroup = (data) => {
//   return request({
//     url: '/v1/prse/wxGroup/manage/',
//     method: 'post',
//     data,
//   })
// }

// Finish Record
export const FinishedWxGroup = (data) => {
  return request({
    url: '/v1/prse/wxGroup/finish/',
    method: 'post',
    data,
  })
}

// // ------------------------- 用户 --------------------------------------

// Create My Record
export const CreateWxGroupRecord = (data) => {
  return request({
    url: '/v1/prse/wxGroup/my/',
    method: 'post',
    data,
  })
}

// Query My Record
export const QueryWxGroupRecord = (page, pageSize) => {
  return request({
    url: '/v1/prse/wxGroup/my/',
    method: 'get',
    params: {
      page: page,
      page_size: pageSize,
    },
  })
}

// Evaluate My Record
export const EvaluateMyRecord = (data) => {
  return request({
    url: '/v1/prse/wxGroup/myEvaluate/',
    method: 'post',
    data,
  })
}

// // Preview My File
// export const GetMyRecordPreviewImages = (rid) => {
//   return request({
//     url: '/v1/prse/dataNeed/my/dataPreView/',
//     method: 'get',
//     params: { rid },
//   })
// }

// ============================== 工作者 =========================
// Get Record
export const QueryWxGroupToMe = (page, pageSize, state) => {
  return request({
    url: '/v1/prse/wxGroup/worker/',
    method: 'get',
    params: {
      page: page,
      page_size: pageSize,
      state,
    },
  })
}

// // Post Annex File
// export const FinishAnnexdataNeedToMe = (data) => {
//   return request({
//     url: '/v1/prse/dataNeed/worker/',
//     method: 'post',
//     data,
//   })
// }
